package net.mengkang.utils;

import java.util.UUID;

public class TraceUtil {
    public static ThreadLocal<String> traceId = new ThreadLocal<>();

    public static void generate() {
        traceId.set(UUID.randomUUID().toString());
    }

    public static String get() {
        return traceId.get();
    }

    public static void remove() {
        traceId.remove();
    }
}
